<layout name="layout" />

<script src="__CDN__/Scripts/PSI/Permission/MainForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Permission/EditForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Permission/SelectPermissionForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Permission/SelectUserForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Permission/SelectDataOrgForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>

<script>
  Ext.onReady(function () {
    var app = Ext.create("PSI.App", {
      userName: "{$admin.username}",
      productionName: "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}",
      appHeaderInfo: {
        title: "{$title}",
        iconCls: "PSI-fid-8996"
      }
    });

    app.add(Ext.create("PSI.Permission.MainForm", {
      pAdd: "{$pAdd}",
      pEdit: "{$pEdit}",
      pDelete: "{$pDelete}"
    }));
  });
</script>
